package jsyf.oa.dao.importExcel;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import jsyf.oa.entity.importExcel.UserEntity;
import jsyf.oa.idao.BaseDao;
import jsyf.oa.ientity.IBaseEntity;
import org.springframework.stereotype.Repository;

/**
 * Created by 92852 on 2018/4/17.
 */
@Repository
public class UserEntityDao extends BaseDao {

    public UserEntityDao() {
        super.iBaseEntity = new UserEntity();
    }

    @Override
    public IBaseEntity convertJson2Entity(JSONObject json) {
        return JSON.toJavaObject(json, UserEntity.class);
    }
}
